package com.yulan.bankback.entity.model.bank;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.omg.CORBA.IDLType;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class UserMsg {

    @TableId(type = IdType.AUTO)
    private Integer msgId;

    private String srcUid;

    private String destUid;

    private String msg;

    private Date msgDate;

    private String type;

    public UserMsg(String srcId, String destId, String msg, Date msgDate, String type) {
        this.srcUid = srcId;
        this.destUid = destId;
        this.msg = msg;
        this.msgDate = msgDate;
        this.type = type;
    }
}
